package com.woniuxy.happylife.conf;

import com.woniuxy.happylife.entity.MallRemark;
import com.woniuxy.happylife.entity.ResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author:roger
 * @Date:2022/2/19 17:31:24
 * @Description:
 */
@FeignClient("mall-comments")
@RequestMapping("/comments")
public interface CommentsFeginClient {
    //远程调用
    @GetMapping("/{gid}")
    public ResponseEntity<List<MallRemark>> getBygid(@PathVariable("gid") int gid);

    @GetMapping("/all/{gid}")
    public ResponseEntity<Integer> getNumsBygid(@PathVariable("gid") int gid);
}
